let instance;

class Session {
    constructor() {
        if (!instance)
            this.singleton()
        return instance;
    }

    singleton() {
        instance = this
        this.info={}
        this.setSessionInfo=function (key,value){
            this.info[key]=value
        }

        this.findSessionInfo=function (key) {
            return this.info[key]
        }
    }
}

export default Session